<?php $this->load->view("common/header_mobile") ?>
<script type="text/javascript">
$(function() {
	//	$( "#job_start" ).datepicker({ dateFormat: 'yy-mm-dd' });
	});
</script>
<body>
  <?php $this->load->view("common/speel_mobile_page") ?>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="1265" valign="top">
      <div id="crum">
<?php echo $crum ?>
</div>

      <form name="form1" method="post" action="<?php echo base_url() ."mobile/newjob/" ?>">
        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
          <tr>
            <td colspan="2" class="tblBodyNoneHover"><span class="pageMsg"><?php echo $msg ?></span></td>
          </tr>
          <tr>
            <td colspan="2" align="left" class="tblBody"><span class="tblBody">Client</span><br>
              <select name="company_id" id="company_id">
                <?php foreach($companies as $company){ ?>
                <option value="<?php echo $company['id'] ?>"><?php echo $company['company_name']?></option>
                <?php } ?>
            </select></td>
          </tr>
          <tr>
            <td colspan="2" align="left" class="tblBody"><span class="tblBody">Job Subject</span><br><textarea name="job_subject" cols="30" rows="2" id="job_subject" placeholder="Subject"></textarea></td>
          </tr>
          <tr>
            <td colspan="2" align="left" class="tblBody"><span class="tblBody">Description</span><br><textarea name="job_description" cols="30" rows="5" id="job_description" placeholder="Description"></textarea></td>
          </tr>
          <tr>
            <td colspan="2" align="left" class="tblBody"><span class="tblBody">Type</span><br>
              <select name="job_type" id="job_type">
                <?php foreach($job_types as $type){ ?>
                <option value="<?php echo $type['lu_value'] ?>"><?php echo $type['lu_lable']?></option>
                <?php } ?>
            </select></td>
          </tr>
          <tr>
            <td colspan="2" align="left" class="tblBody"><span class="tblBody">Pirority</span><br>
              <select name="job_pri" id="job_pri">
                <?php foreach($job_pri as $pri){ ?>
                <option value="<?php echo $pri['lu_value'] ?>"><?php echo $pri['lu_lable']?></option>
                <?php } ?>
            </select></td>
          </tr>
          <tr>
            <td colspan="2" align="left" class="tblBody"><span class="tblBody">Logged at</span><br><input name="job_logged" type="text" id="job_logged" value="<?php echo date("Y-m-d H:i",now()) ?>" size="20" placeholder="Log time" ></td>
          </tr>
          <tr>
            <td colspan="2" align="left" class="tblBody"><span class="tblBody">Logged by</span><br><input name="job_logged_by" type="text" id="job_logged_by" value="<?php echo $_SESSION['user_fullname']?>" size="20" readonly></td>
          </tr>
          <tr>
            <td align="left" class="tblBody"><span class="tblBody">Job Start</span><br>
              <select name="job_start_date" id="job_start_date">
                <?php echo gen_mobile_date_dropdown() ?>
            </select></td>
            <td align="left" class="tblBody"><br>              <input type="text" name="job_start_time" id="job_start_time" value="<?php echo date("h:m") ?>"></td>
          </tr>
          <tr>
            <td align="left" class="tblBody"><span class="tblBody">Job End</span><br>
              <select name="job_end_date" id="job_end_date">
                <?php echo gen_mobile_date_dropdown() ?>
            </select></td>
            <td align="left" class="tblBody"><br>              <input type="text" name="job_end_time" id="job_end_time" value= <?php echo date("h:m") ?>></td>
          </tr>
          <tr>
            <td colspan="2" align="left"><input name="action" type="hidden" id="action" value="newJob">              <input name="button" type="submit" class="tblBtn" id="button" value=" Add Job  "></td>
          </tr>
        </table>

      </form></td>
    </tr>
</table>

<?php $this->load->view("common/footer_mobile") ?>
</body>
</html>
